<template>
  <div class="ArtistIntroduction">
    <div>
      <h2><i></i><span>{{ name }}简介</span></h2>
      <p class="Desc">{{ artistDesc.briefDesc }}</p>
    </div>

    <div v-for="introduction in artistDesc.introduction" :key="introduction.ti" class="intt">
      <h2><span>{{ introduction.ti }}</span></h2>
      <p class="Desc">{{ introduction.txt }}</p>
    </div>

    
  </div>
</template>

<script>
export default {
  name: 'ArtistIntroduction',
  data() {
    return {
      artistDesc: {},
      name: this.$route.query.name
    }
  },
  mounted() {
    this.$API.artistDesc(this.$route.query.id).then(res => {
      if (res.data.code === 200) {
        this.artistDesc = res.data;
      }
    })
  }
}
</script>

<style lang="less" scoped>
.ArtistIntroduction {
  padding-bottom: 40px;
  width: 100%;

  .intt{
    margin-top: 25px;
  }

  h2 {
    font-size: 14px;
    display: flex;

    i {
      background-color: #C20C0C;
      width: 4px;
      display: inline-block;
      margin-right: 10px;
    }
  }

  .Desc {
    color: #666666;
    text-indent: 2em;
    font-size: 12px;
    line-height: 25px;
  }
}
</style>